package com.xunge.service;

import com.xunge.pojo.HomeworkSubmission;
import com.xunge.pojo.HomeworkSubmissionQueryParam;
import com.xunge.pojo.PageResult;

import java.util.List;

public interface HomeworkSubmissionService {
    /**
     * 分页查询作业提交信息
     */
    PageResult<HomeworkSubmission> page(HomeworkSubmissionQueryParam homeworkSubmissionQueryParam);

    /**
     * 新增作业提交
     */
    void save(HomeworkSubmission homeworkSubmission);

    /**
     * 根据ID查询作业提交
     */
    HomeworkSubmission getById(Integer id);

    /**
     * 根据ID修改作业提交
     */
    void update(HomeworkSubmission homeworkSubmission);

    /**
     * 根据ID删除作业提交
     */
    void deleteById(Integer id);

    /**
     * 批量删除作业提交
     */
    void delete(List<Integer> ids);

    /**
     * 根据作业ID查询提交记录
     */
    List<HomeworkSubmission> getByHomeworkId(Integer homeworkId);

    /**
     * 根据学生ID查询提交记录
     */
    List<HomeworkSubmission> getByStudentId(Integer studentId);

    /**
     * 根据作业ID和学生ID查询提交记录
     */
    HomeworkSubmission getByHomeworkIdAndStudentId(Integer homeworkId, Integer studentId);
} 